//
//  BKGDEvaluationGeneralObject.h
//  BESTKEEP
//
//  Created by 武探 on 2016/9/29.
//  Copyright © 2016年 YISHANG. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MJExtension.h"

@interface BKGDEvaluationTopObject : NSObject

@property(nonatomic,strong) NSString *haoping;
@property(nonatomic,strong) NSString *haopingPct;
@property(nonatomic,strong) NSString *chaping;
@property(nonatomic,strong) NSString *chapingPct;
@property(nonatomic,strong) NSString *zhongping;
@property(nonatomic,strong) NSString *zhongpingPct;
@property(nonatomic,strong) NSString *satisfactionPct;
@property(nonatomic,strong) NSString *helpfulnessNum;
@property(nonatomic,strong) NSString *helplessNum;
@property(nonatomic,strong) NSString *lasthaopingexperiences;
@property(nonatomic,strong) NSString *userId;
@property(nonatomic,strong) NSString *userPhoto;

@end








@interface BKGDEvaluationReplyObject : NSObject

@property(nonatomic,strong) NSString *id; //回复表Id
@property(nonatomic,strong) NSString *orderEvaluationId; //评价表Id
@property(nonatomic,strong) NSString *replyContent; //回复内容
@property(nonatomic,strong) NSString *replyUserId; //回复人Id
@property(nonatomic,assign) NSInteger replyType; //回复类型：1官方，0用户
@property(nonatomic,strong) NSString *replyUserName; //回复人昵称
@property(nonatomic,strong) NSString *replyUserPhoto; //回复人头像
@property(nonatomic,strong) NSString *replytoUserId; //回复对象Id
@property(nonatomic,assign) NSInteger createdDate;
@property(nonatomic,strong) NSString *createdDateStr;

@end

@interface BKGDEvaluPropertyObject : NSObject

@property(nonatomic,strong) NSString *proName;
@property(nonatomic,strong) NSString *proValue;

@end


@interface BKGDEvaluationObject : NSObject

@property(nonatomic,strong) NSString *id;
@property(nonatomic,strong) NSString *orderId;
@property(nonatomic,strong) NSString *orderItemId;
@property(nonatomic,strong) NSString *goodsId;
@property(nonatomic,assign) NSInteger scoringGrades;//评价得分
@property(nonatomic,strong) NSString *experiences; //评价
@property(nonatomic,assign) NSInteger helpfulnessNum; //有帮助数量
@property(nonatomic,assign) NSInteger helplessNum; //无帮助数量
@property(nonatomic,assign) NSInteger updatedDate;
@property(nonatomic,strong) NSString *userId;
@property(nonatomic,strong) NSString *userName;
@property(nonatomic,strong) NSString *userPhoto;
@property(nonatomic,assign) NSInteger orderEvaluationReplyNum;//回复数量
@property(nonatomic,assign) BOOL isVote; //true有用 false无用 空串未投票
@property(nonatomic,assign) NSInteger createdDate;
@property(nonatomic,strong) NSString *createdDateStr;
@property(nonatomic,strong) NSArray<NSDictionary<NSString*, NSString* >*> *images;
@property(nonatomic,strong) NSArray<BKGDEvaluationReplyObject*> *orderEvaluationReply;//回复列表
@property(nonatomic,strong) NSArray<BKGDEvaluPropertyObject*> *propRelStrs;

/**
 缓存cell高度
 */
@property(nonatomic,assign) CGFloat cacheHeight;

@end


/**
 商品评价及概要（参数信息）
 */
@interface BKGDEvaluationGeneralObject : NSObject

@property(nonatomic,assign) NSInteger haopingPct; //好评率
@property(nonatomic,assign) NSInteger total; //总评价数
@property(nonatomic,strong) BKGDEvaluationObject *evaluation;

@end
